import { createApp } from "vue";
import "./style/reset.scss";
import App from "./App";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import Router from "./router/permission";

import pinia from "@/stores";

// element icons
import * as Icons from "@element-plus/icons-vue";

const app = createApp(App);
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons]);
});

app.use(ElementPlus);

app.use(Router);

app.use(pinia);
app.mount("#app");
